package com.lw.mybatis.mapper;

import com.lw.mybatis.pojo.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/2 22:25
 */
public interface UserMapper {
    TbUser findById(Long id);

    TbUser findByUsernameAndPassword(@Param("username") String username, @Param("pwd") String password);

    List<TbUser> findByLike(String like);

    List<TbUser> findByGenderAndRole(@Param("gender") String gender,@Param("role") Long role);

    int updateById(TbUser tbUser);
}
